package com.gitee.wsl.lifecycle.nav

import com.gitee.wsl.data.page.PagesNavigation
import com.gitee.wsl.lifecycle.nav.ext.setItems

interface ListNavigation<V,R:SelectAbleList<V,R>>:Navigation<R>

class DefaultListNavigation<V,R:SelectAbleList<V,R>>:DefaultNavigation<R>()

/**
 * Returns a default implementation of [PagesNavigation].
 * Broadcasts navigation events to all subscribed observers.
 */
fun <C : Any> defaultListNavigation() = DefaultListNavigation<C,SelectAbleListImp<C>>()


fun test(){
    val nav = defaultListNavigation<Int>()
    nav.setItems { listOf(1,2,3) }

}